//
//  SVProgressHUD+HDProgressHUD.m
//  HDVideoKitDemok
//
//  Created by liugaosheng on 2021/8/18.
//  Copyright © 2021 刘高升. All rights reserved.
//

#import "SVProgressHUD+HDProgressHUD.h"

@implementation SVProgressHUD (HDProgressHUD)
+(void)showToast:(NSString*)msg andDuration:(CGFloat)duration{

//    [SVProgressHUD showWithStatus:string]; //设置需要显示的文字
    [SVProgressHUD showImage:[UIImage imageNamed:@"wrt424erte2342rx"] status:msg];
    [SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeFlat];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeCustom]; //设置HUD背景图层的样式
    [SVProgressHUD setForegroundColor:[UIColor whiteColor]];
    [SVProgressHUD setBackgroundColor:[UIColor blackColor]];
    [SVProgressHUD setBackgroundLayerColor:[UIColor clearColor]];
    [SVProgressHUD dismissWithDelay:duration];
}

+(void)showToast:(NSString*)msg{
    [self showToast:msg andDuration:2];
}

@end
